package cn.edu.sdyu.ie.crs.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.util.Date;

//@Schema(name = "教室信息")
@ApiModel("教学楼信息")
@Data
@Entity
public class ClassroomBuilding {

    //@Schema(name = "教室Id")
    @ApiModelProperty("教室Id")
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    @ApiModelProperty("教学楼名称")
    private String classroomBuildingName;  // 教学楼名称
    @ApiModelProperty("教学楼地点")
    private String classroomBuildingPlace;  // 教学楼地点
    @ApiModelProperty("楼层")
    private Integer floor;  // 楼层
    @ApiModelProperty("教室位置")
    private String classroomPlace;  // 教室位置
    @ApiModelProperty("用户名")
    private String username;  // 用户名
    @ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;  // 创建时间

}
